package com.lagou.edu.springdatarocket.producer;

import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;

public class ProducerTest {
    @Autowired
    private RocketMQTemplate rocketMQTemplate;
    public void test1(){
        rocketMQTemplate.convertAndSend("springboot-mq","hello springboot rocketmq");
    }
}